import Vue from 'vue'
import VueRouter from 'vue-router'
const Home = () => import(/* webpackChunkName: "Home" */ '../components/Home')
const Login = () => import('../components/login/Login')
const Star = () => import('../components/header/Star')

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/Home'
  },
  {
    path: '/Home',
    component: Home
  },
  {
    path: '/Login',
    component: Login
  },
  {
    path: '/Star',
    component: Star
  }
]

const router = new VueRouter({
  routes
})

export default router
